<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/tiers.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewTiersTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewTiersLabel_nomTiers}"/>
                    <h:outputText value="#{tiersController.selected.nomTiers}" title="#{bundle.ViewTiersTitle_nomTiers}"/>
                    <h:outputText value="#{bundle.ViewTiersLabel_codeInterneTiers}"/>
                    <h:outputText value="#{tiersController.selected.codeInterneTiers}" title="#{bundle.ViewTiersTitle_codeInterneTiers}"/>
                    <h:outputText value="#{bundle.ViewTiersLabel_categorie}"/>
                    <h:outputText value="#{tiersController.selected.categorie.nomCategorie}" title="#{bundle.ViewTiersTitle_categorie}"/>
                    <h:outputText value="#{bundle.ViewTiersLabel_typeTiers}"/>
                    <h:outputText value="#{tiersController.selected.typeTiers.nomType}" title="#{bundle.ViewTiersTitle_typeTiers}"/>
                    <h:outputText value="#{bundle.ViewTiersLabel_formeJuridique}"/>
                    <h:outputText value="#{tiersController.selected.formeJuridique}" title="#{bundle.ViewTiersTitle_formeJuridique}"/>
                    <h:outputText value="#{bundle.ViewTiersLabel_identifiantLegal}"/>
                    <h:outputText value="#{tiersController.selected.identifiantLegal}" title="#{bundle.ViewTiersTitle_identifiantLegal}"/>
                    <h:outputText value="#{bundle.ViewTiersLabel_capital}"/>
                    <h:outputText value="#{tiersController.selected.capital}" title="#{bundle.ViewTiersTitle_capital}"/>
                    <h:outputText value="#{bundle.ViewTiersLabel_effectif}"/>
                    <h:outputText value="#{tiersController.selected.effectif}" title="#{bundle.ViewTiersTitle_effectif}"/>
                    <h:outputText value="#{bundle.ViewTiersLabel_tva}"/>
                    <h:outputText value="#{tiersController.selected.tva}" title="#{bundle.ViewTiersTitle_tva}"/>
                    <h:outputText value="#{bundle.ViewTiersLabel_numTVA}"/>
                    <h:outputText value="#{tiersController.selected.numTVA}" title="#{bundle.ViewTiersTitle_numTVA}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{tiersController.destroyAndView}" value="#{bundle.ViewTiersDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewTiersEditLink}"/>
                <br />
                <h:commandLink action="#{tiersController.prepareCreate}" value="#{bundle.ViewTiersCreateLink}" />
                <br />
                <h:commandLink action="#{tiersController.prepareList}" value="#{bundle.ViewTiersShowAllLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
